<?php
require_once($_SESSION['dir']."/basedatos.php");
class foro {
   
   private $ID;
   private $nombre;
   private $lista_temas = array();

   public function __construct( $id_new ) {
      $this->ID = $id_new;
   }

   public static function getOnlyForo() {
      $baseD = new BaseDatos();
      $id_new = $baseD->obtenerForo();
      return new Foro($id_new);
   }
   
   public function getId() {
      return $this->ID;
   }
   
   public function ObtenerTemas() {
      $baseD = new BaseDatos();
      $arr = $baseD->obtenerTemas( $this );
      return $arr;
   }
   
}

?>
